from app.constants import NACOS_LOGS_SERVICE_NAME
from app.decorator.remote import RemoteApi
from app.enums.method import Method
from app.schemas.log import LogDTO


class ILogsClient:

    @staticmethod
    @RemoteApi(method=Method.POST, service_name=NACOS_LOGS_SERVICE_NAME, path="/logs/optLog")
    async def save_opt_log(log_dto: LogDTO) -> None:
        """
        保存操作日志
        :param log_dto: 日志信息
        :return:
        """
        ...
